package yxk.report.wtc.wtte.modlist;

import kd.bos.form.events.SetFilterEvent;
import kd.bos.list.plugin.AbstractMobListPlugin;
import kd.bos.orm.query.QCP;
import kd.bos.orm.query.QFilter;

import java.util.ArrayList;
import java.util.List;

/**
 * HR行政组织过滤
 */
public class HrpiEmpEosorgreModList extends AbstractMobListPlugin {

    @Override
    public void setFilter(SetFilterEvent e) {
        List<QFilter> fields = new ArrayList<>();
        QFilter qFilter = new QFilter("iscurrentversion", QCP.equals, true)
                .and("sortcode",QCP.not_equals,"");
        fields.add(qFilter);
        e.setCustomQFilters(fields);
    }
}
